package com.ww.juc.threadpool.custom;

import java.util.concurrent.TimeUnit;

/**
 * TODO
 *
 * @author wanggw
 * @date 2024-07-12 23:22:54
 */
public class Runnable1 implements Runnable {

    @Override
    public void run() {
        try {
            System.out.println(Thread.currentThread().getName() + System.currentTimeMillis());
            TimeUnit.SECONDS.sleep(4);
            System.out.println(Thread.currentThread().getName() + System.currentTimeMillis());
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
